package com.springcloud.myfeign.demo;

import feign.Feign;

import java.util.List;

/**
 * 本类为Feign官网demo，使用此类需要将pom中的demo依赖打开注释就可以使用了
 */
public class MyApp {
  /*
  public static void main(String... args) {
    GitHub github = Feign.builder()
                         .decoder(new GsonDecoder())
                         .target(GitHub.class, "https://api.github.com");
  
    // Fetch and print a list of the contributors to this library.
    List<Contributor> contributors = github.contributors("OpenFeign", "feign");
    for (Contributor contributor : contributors) {
      System.out.println(contributor.login + " (" + contributor.contributions + ")");
    }
  }*/
}